export interface TaskItem {
  handlerComment: string;
  handlerName: string;
  innerProcDefId: string;
  procInstId: string;
  taskDefKey: string;
  taskName: string;
  taskRecordId: string;
  taskStatusName: string;
  handlerTime?: string;
  handlerIcon?: string;
  noAvator?: number;
  userName?: string;
  icon?: string;
}

export interface CsUserTask {
  handlerComment: string;
  handlerName: string;
  handlerTime: string;
  innerProcDefId: string;
  procInstId: string;
  taskDefKey: string;
  taskName: string;
  taskRecordId: string;
  taskType: number;
  handlerIcon?: string;
}

export interface UserTask {
  taskName: string;
  taskStatus: number;
  taskProperty: number;
  handlerName: string;
  taskDefKey: string;
  taskStatusName: string;
  taskRecordId?: string; // 待审批才有的数据
  innerProcDefId: string;
  procInstId: string;
  handlerComment: string;
  isEndNode: number;
  handlerTime: string;
  handlerIcon?: string;
  startUserChoose?: number;
  handler?: string;
}

export interface HistoryTask {
  taskName: string;
  taskDefKey: string;
  nodeStatus: number;
  nodeStatusName: string;
  nodeType: number;
  csUserTasks?: CsUserTask[];
  userTasks: UserTask[];
  ccUsers?: any[];
  approveUsers?: any[];
  activityName?: string;
}
